import React, {Component} from 'react';
import {Popup, Tab,Button,Group,Field ,Dialog } from 'saltui';


/**
 *  <DelRoom  buttonName  confirm >
 */
export default class DelRoom extends React.Component {
  constructor(props) {

    super(props);
    this.state = {
      prices :[]
    };
    this.state.confirm = this.props.confirm
   // this.state.submitClick = this.props.submitClick
   // this.state.cancelClick  = this.props.cancelClick;
    this.state.buttonName = this.props.buttonName;

  }

  onClick = () =>{
    Dialog.confirm(this.state.confirm());
  }


  render() {
    return <Button type="secondary"  size="small"   onClick={this.onClick} >{this.state.buttonName}</Button>
  }
}
